package com.chendechao.model_home.ui

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object HomeHttpModule {

    @Provides
    @Singleton
    fun provideHomeApiService(retrofit: Retrofit):HomApiService{
        return retrofit.create(HomApiService::class.java)
    }
}